package com.zimmur.dao.designer;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.zimmur.model.account.view.ConcernView;
import com.zimmur.model.desiger.DesigerFav;

public interface IDesignerFavDao {

  /**
   * 根据 关注者Id和被关注者Id查询 数据   按时间排序，第一条数据
   * @param createUserId
   * @param userId
   * @return
   */
  DesigerFav selectDesigerFav(@Param("createUserId")Long createUserId,@Param("userId")Long userId);
  /**
   * 添加关注信息，id自增,status默认为1
   * @param desigerFav
   * @return
   */
  int insertDesigerFav(DesigerFav desigerFav);
  /**
   * 更新关注状态
   * @param desigerFav
   * @return
   */
  int updateDesigerFav(DesigerFav desigerFav);
  
  int countDesignerFavByCreateUserId(@Param("createUserId")long createUserId);
  /**
	 * 查询关注的衣匠
	 * @param createUserId
	 * @param first
	 * @param size
	 * @return
	 */
	public List<ConcernView> selectDesigerByDesignerFav(@Param("createUserId")long createUserId,@Param("first")int first,@Param("size")int size);
}
